import {get,post} from "./http"

//登录接口
export const reqLogin=(params)=>post("/api/login",params)

//注册接口
export const reqRegister=(params)=>post("/api/register",params)

//新人专享
export const reqNewP=(params)=>get("/api/getnew",params)

//秒杀
export const reqMiaoSha=(params)=>get("/api/getseckill",params)

//首页商品信息
export const reqShangP=(params)=>get("/api/getindexgoods",params)

//商品分类
export const reqLeftL=(params)=>get("/api/getcate",params)
//分类商品
export const reqRightL=(params)=>get("/api/getgoods",params)

//导航list
export const reqNav=()=>get("/api/getcate")
//banner 
export const reqBanner=()=>get("/api/getbanner")

//homegoods
export const reqGoods=()=>get("/api/getindexgoods")

//分类下的商品
export const reqList=params=>get("/api/getgoodlist",params)